home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / include / arpa / ftp.h next >
Encoding:
C/C++ Source or Header  |  1994-08-11  |  2.9 KB  |  100 lines

  1. /*
  2.  * Copyright (c) 1983, 1989 Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms are permitted
  6.  * provided that: (1) source distributions retain this entire copyright
  7.  * notice and comment, and (2) distributions including binaries display
  8.  * the following acknowledgement:  ``This product includes software
  9.  * developed by the University of California, Berkeley and its contributors''
  10.  * in the documentation or other materials provided with the distribution
  11.  * and in all advertising materials mentioning features or use of this
  12.  * software. Neither the name of the University nor the names of its
  13.  * contributors may be used to endorse or promote products derived
  14.  * from this software without specific prior written permission.
  15.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  16.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  17.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  18.  *
  19.  *    @(#)ftp.h    5.5 (Berkeley) 6/1/90
  20.  */
  21.  
  22. /*
  23.  * Definitions for FTP
  24.  * See RFC-765
  25.  */
  26.  
  27. #ifndef _ARPA_FTP_H_
  28. #define _ARPA_FTP_H_
  29.  
  30. /*
  31.  * Reply codes.
  32.  */
  33. #define PRELIM        1    /* positive preliminary */
  34. #define COMPLETE    2    /* positive completion */
  35. #define CONTINUE    3    /* positive intermediate */
  36. #define TRANSIENT    4    /* transient negative completion */
  37. #define ERROR        5    /* permanent negative completion */
  38.  
  39. /*
  40.  * Type codes
  41.  */
  42. #define    TYPE_A        1    /* ASCII */
  43. #define    TYPE_E        2    /* EBCDIC */
  44. #define    TYPE_I        3    /* image */
  45. #define    TYPE_L        4    /* local byte size */
  46.  
  47. #ifdef FTP_NAMES
  48. char *typenames[] =  {"0", "ASCII", "EBCDIC", "Image", "Local" };
  49. #endif
  50.  
  51. /*
  52.  * Form codes
  53.  */
  54. #define    FORM_N        1    /* non-print */
  55. #define    FORM_T        2    /* telnet format effectors */
  56. #define    FORM_C        3    /* carriage control (ASA) */
  57. #ifdef FTP_NAMES
  58. char *formnames[] =  {"0", "Nonprint", "Telnet", "Carriage-control" };
  59. #endif
  60.  
  61. /*
  62.  * Structure codes
  63.  */
  64. #define    STRU_F        1    /* file (no record structure) */
  65. #define    STRU_R        2    /* record structure */
  66. #define    STRU_P        3    /* page structure */
  67. #ifdef FTP_NAMES
  68. char *strunames[] =  {"0", "File", "Record", "Page" };
  69. #endif
  70.  
  71. /*
  72.  * Mode types
  73.  */
  74. #define    MODE_S        1    /* stream */
  75. #define    MODE_B        2    /* block */
  76. #define    MODE_C        3    /* compressed */
  77. #ifdef FTP_NAMES
  78. char *modenames[] =  {"0", "Stream", "Block", "Compressed" };
  79. #endif
  80.  
  81. /*
  82.  * Record Tokens
  83.  */
  84. #define    REC_ESC        '\377'    /* Record-mode Escape */
  85. #define    REC_EOR        '\001'    /* Record-mode End-of-Record */
  86. #define REC_EOF        '\002'    /* Record-mode End-of-File */
  87.  
  88. /*
  89.  * Block Header
  90.  */
  91. #define    BLK_EOR        0x80    /* Block is End-of-Record */
  92. #define    BLK_EOF        0x40    /* Block is End-of-File */
  93. #define BLK_ERRORS    0x20    /* Block is suspected of containing errors */
  94. #define    BLK_RESTART    0x10    /* Block is Restart Marker */
  95.  
  96. #define    BLK_BYTECOUNT    2    /* Bytes in this block */
  97.  
  98. #endif /* _ARPA_FTP_H_ */
  99.  
  100.